package com.mycompany.app.hr.pa.model.block4employee;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.Transient;

import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * employee orgnization info
 * 
 * @author Shawn.guo
 */
@Embeddable
public class EmployeeOrgInfo {
    
    
    @Transient
    private String divisionCode;
    @Transient
    private String costCenterCode;
    
    
    

    @Column(name = "supervisor_gid")
    private String directSuperiorGid;

    @Column(name = "supervisor_name")
    private String directSuperiorName;

    @Transient
    private String jobTitle;

    @Transient
    private String jobTitleCode;

    @Transient
    private String grade;
    
    /**
     * Active employees, pensioners and early retirees 
     */
    
//    @Column(name="employee_group")
    @Column(name="emp_category")
    private String employeeGroup;
    
    /**
     * Wage earners, salaried employees and non pay scale employees are all
     * examples of subgroups within the employee group ”active”.
     */
//    @Column(name="employee_subgroup")
    @Column(name="employee_type")
    private String employeeSubgroup;

    // =======================================================
    @Override
    public String toString() {

        return ToStringBuilder.reflectionToString(this);
    }

    // =======================================================

    public String getDirectSuperiorGid() {

        return directSuperiorGid;
    }

    public void setDirectSuperiorGid(String directSuperiorGid) {

        this.directSuperiorGid = directSuperiorGid;
    }

    public String getDirectSuperiorName() {

        return directSuperiorName;
    }

    public void setDirectSuperiorName(String directSuperiorName) {

        this.directSuperiorName = directSuperiorName;
    }

    public String getJobTitle() {

        return jobTitle;
    }

    public void setJobTitle(String jobTitle) {

        this.jobTitle = jobTitle;
    }

    public String getJobTitleCode() {

        return jobTitleCode;
    }

    public void setJobTitleCode(String jobTitleCode) {

        this.jobTitleCode = jobTitleCode;
    }

    public String getGrade() {

        return grade;
    }

    public void setGrade(String grade) {

        this.grade = grade;
    }

    public String getEmployeeGroup() {
    
        return employeeGroup;
    }

    public void setEmployeeGroup(String employeeGroup) {
    
        this.employeeGroup = employeeGroup;
    }

    public String getEmployeeSubgroup() {
    
        return employeeSubgroup;
    }

    public void setEmployeeSubgroup(String employeeSubgroup) {
    
        this.employeeSubgroup = employeeSubgroup;
    }

}
